#include<stdio.h>
void main()
{
	int a,b,c;
	
	a=0;

	b=1;

	for (c = 1; c <=10; c++)

	{

		a=a+b;

		b=b*c;

	}

	printf("%d\n", a);

}